setData() Method |
This method saves data to the clipboard.
Syntax
system.getClipboard.setData(sFormat, oData);
Parameters
Parameter |
Description |
---|---|
sFormat |
Required. Denotes the format of the data added to the clipboard. Text and XML data types are predefined and are supported by default. |
oData |
Required. Denotes the data (of any type) that is to be saved to the clipboard. |
Return Value
Returns the following:
- 1 or True: Returns this value if the data can be set.
- 0 or False: Returns this value if the data cannot be set.
Example
system.getClipboard.setData ("XML", xmlObject);